 

import request from '@/router/axios'

export function fetchList(query) {
  return request({
    url: '/epm/swexticketoperation/page',
    method: 'get',
    params: query
  })
}

export function addObj(obj) {
  return request({
    url: '/epm/swexticketoperation',
    method: 'post',
    data: obj
  })
}

export function getObj(id) {
  return request({
    url: '/epm/swexticketoperation/' + id,
    method: 'get'
  })
}

export function delObj(id) {
  return request({
    url: '/epm/swexticketoperation/' + id,
    method: 'delete'
  })
}

export function putObj(obj) {
  return request({
    url: '/epm/swexticketoperation',
    method: 'put',
    data: obj
  })
}

export function noticeBatch(obj) {
  return request({
    url: '/epm/swexticketoperation/noticeBatch',
    method: 'put',
    data: obj
  })
}

export function sendBatch(obj) {
  return request({
    url: '/epm/swexticketoperation/sendBatch',
    method: 'put',
    data: obj
  })
}

export function cancelBatch(obj) {
  return request({
    url: '/epm/swexticketoperation/cancelBatch',
    method: 'put',
    data: obj
  })
}

export function exportExcel(query) {
  return request({
    url: '/epm/swexticketoperation/export',
    method: 'get',
    params: query,
    responseType: 'arraybuffer'
  })
}
export function delBatch(ids) {
  return request({
    url: '/epm/swexticketoperation/delBatch',
    method: 'delete',
    data: ids
  })
}